<?php

class postForm extends sfForm
{
    public function configure()
    {
        $this->setWidget('post', new sfWidgetFormInput());
        $this->setWidget('status_type', new sfWidgetFormChoice(array(
            'expanded' => true,
            'choices' => array('status', 'link', 'zdjęcie', 'video')
        )));

        $this->setValidator('post', new sfValidatorPass());
        $this->setValidator('status_type', new sfValidatorPass());

        $this->widgetSchema->setNameFormat('input[%s]');
    }
}